package pl.spikes.xmpp;

import org.jivesoftware.smack.XMPPConnection;

public class XMPPLogic {
	private XMPPConnection conn = null;

	private static XMPPLogic instance = null;

	public synchronized static XMPPLogic getInstance() {
		if(instance==null){
			instance = new XMPPLogic();
	    }
	    return instance;
	 }

	public void setConnection(XMPPConnection connection){
	    this.conn = connection;
	}

	public XMPPConnection getConnection() {
		return this.conn;
	}

}
